package com.hsalf.smileyrating.smileys;

import com.hsalf.smilerating.Point;
import com.hsalf.smileyrating.FloatEvaluator;
import com.hsalf.smileyrating.smileys.base.Smiley;

import ohos.agp.colors.RgbPalette;

public class Terrible extends Smiley {

    public Terrible() {
        super(-35, 280);

        float div = 0.20f;
        FloatEvaluator f = new FloatEvaluator();
        createMirrorInverseSmile(new Point(CENTER_SMILE, MOUTH_CENTER_Y),
            new Point(f.evaluate(div, CENTER_SMILE * 0.414, CENTER_SMILE),
                f.evaluate(div, MOUTH_CENTER_Y - (CENTER_SMILE * 0.24), MOUTH_CENTER_Y)),  // Top control
            new Point(f.evaluate(div, CENTER_SMILE * 0.355, CENTER_SMILE),
                f.evaluate(div, MOUTH_CENTER_Y - (CENTER_SMILE * 0.029), MOUTH_CENTER_Y)),  // Bottom control
            new Point(f.evaluate(div, CENTER_SMILE * 0.65, CENTER_SMILE),
                f.evaluate(div, MOUTH_CENTER_Y - (CENTER_SMILE * 0.118), MOUTH_CENTER_Y)), // Top Point
            new Point(f.evaluate(div, CENTER_SMILE * 0.591, CENTER_SMILE),
                f.evaluate(div, MOUTH_CENTER_Y + (CENTER_SMILE * 0.118), MOUTH_CENTER_Y)) // Bottom point
        );
        setup(getClass().getSimpleName(), RgbPalette.parse("#f29a68"), RgbPalette.parse("#353431"));
    }

}
